package com.wx.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 27250
 */
public class In {
    int inId;
    int drugId;
    int inNumber;
    int inDoctor;
    String inDate;

    public int getInId() {
        return inId;
    }

    public void setInId(int inId) {
        this.inId = inId;
    }

    public int getDrugId() {
        return drugId;
    }

    public void setDrugId(int drugId) {
        this.drugId = drugId;
    }

    public int getInNumber() {
        return inNumber;
    }

    public void setInNumber(int inNumber) {
        this.inNumber = inNumber;
    }

    public int getInDoctor() {
        return inDoctor;
    }

    public void setInDoctor(int inDoctor) {
        this.inDoctor = inDoctor;
    }

    public String getInDate() {
        return inDate;
    }

    public void setInDate(String inDate) {
        long dateTime = Long.parseLong(inDate);
        Date date=new Date(dateTime);
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        this.inDate=sdf.format(date);
    }

    @Override
    public String toString() {
        return "In{" +
                "inId=" + inId +
                ", drugId=" + drugId +
                ", inNumber=" + inNumber +
                ", inDoctor=" + inDoctor +
                ", inDate=" + inDate +
                '}';
    }
}
